package com.knowvoyage.knowvoyageserver.util;

import com.knowvoyage.knowvoyageserver.pojo.dto.AiChatDto;
import lombok.Getter;

@Getter
public class ChatRequest {
    private final String message;
    private final String dialogId;
    private final boolean stream;
    private final String model;
    private final String mode;

    public ChatRequest(AiChatDto aiChatDto, boolean stream) {
        this(aiChatDto.getAsk(), aiChatDto.getDialogId().toString(), stream, aiChatDto.getMode(), aiChatDto.getModel());
    }

    public ChatRequest(String message, String dialogId, boolean stream, String mode, String model) {
        this.message = message;
        this.dialogId = dialogId;
        this.stream = stream;
        this.mode = mode;
        this.model = model;
    }
}